# Hisilicon Hi35xx sample Makefile

include ../Makefile.param

HI_SUPPORT_MP3DEC := NO

SRCS := $(wildcard *.c)

TARGET := $(SRCS:%.c=%)

SRCS += $(wildcard $(PWD)/adp/audio_aac*.c)

# if need mp3dec
ifeq ($(HI_SUPPORT_MP3DEC), YES)
	MP3_LIB := ./mp3dec/lib
	CFLAGS += -D__Mp3decSupport__ -L$(MP3_LIB) -lmp3dec
	SRCS += $(wildcard $(PWD)/adp/audio_mp3*.c)
endif

# compile linux or HuaweiLite
include $(PWD)/../$(OSTYPE).mak
